<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>GetJSONMember</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">GetJSONMember()</font></b></p>
<p><b>Syntax</b></p><blockquote>

Result = <font color="#006666"><b>GetJSONMember</b></font>(JSONValue, Key$)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>



Return the JSON object member with the given Key$ of a JSON value 
of <a href="jsontype.html">type</a> <font color="#924B72">#PB_JSON_Object</font>. 

 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>JSONValue</i></td>
<td width="90%"> 
 
The JSON value. The value must be of type <font color="#924B72">#PB_JSON_Object</font>. 

 

</td></tr>
<tr><td><i>Key$</i></td>
<td> 
 
The key of the member to return. 
<br>
<br>
The key is compared case sensitive unless the <font color="#924B72">#PB_JSON_NoCase</font> flag 
has been specified when creating or parsing the JSON data. 

 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>



The address of the JSON value with the specified key. 
If the given 'Key$' does not exist in the object, the result is 0. 

 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  Input$ = "{ " +<font color="#006666"> Chr</font>(34) + "x" +<font color="#006666"> Chr</font>(34) + ": 10, " + 
<font color="#006666">                  Chr</font>(34) + "y" +<font color="#006666"> Chr</font>(34) + ": 20, " + 
<font color="#006666">                  Chr</font>(34) + "z" +<font color="#006666"> Chr</font>(34) + ": 30 }"
  
<font color="#006666">  ParseJSON</font>(0, Input$)
  
  <b><font color="#006666">Debug</font></b> <font color="#006666">GetJSONInteger</font>(<font color="#006666">GetJSONMember</font>(<font color="#006666">JSONValue</font>(0), "x"))
  <b><font color="#006666">Debug</font></b> <font color="#006666">GetJSONInteger</font>(<font color="#006666">GetJSONMember</font>(<font color="#006666">JSONValue</font>(0), "y"))
  <b><font color="#006666">Debug</font></b> <font color="#006666">GetJSONInteger</font>(<font color="#006666">GetJSONMember</font>(<font color="#006666">JSONValue</font>(0), "y"))
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="setjsonobject.html">SetJSONObject()</a>, <a href="addjsonmember.html">AddJSONMember()</a>, <a href="removejsonmember.html">RemoveJSONMember()</a>, 
<a href="clearjsonmembers.html">ClearJSONMembers()</a>, <a href="examinejsonmembers.html">ExamineJSONMembers()</a>, <a href="jsonobjectsize.html">JSONObjectSize()</a>, 
<a href="jsontype.html">JSONType()</a> 

</Blockquote><p><b>Supported OS  </b><Blockquote>All</Blockquote></p><center>&lt;- <a href=getjsoninteger.html>GetJSONInteger()</a> - <a href=index.html>Json Index</a> - <a href=getjsonquad.html>GetJSONQuad()</a> -&gt;



</body></html>